package com.mzj.saas.mservice.lifePay.repository;

import com.mzj.saas.mservice.lifePay.entity.LivingPaymentUserGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface LivingPaymentUserGroupRepository extends PagingAndSortingRepository<LivingPaymentUserGroup, Long>, JpaSpecificationExecutor<LivingPaymentUserGroup>, JpaRepository<LivingPaymentUserGroup, Long> {
    List<LivingPaymentUserGroup> findByUserId(String userId);

    LivingPaymentUserGroup findByUserIdAndName(String userId, String name);

    List<LivingPaymentUserGroup> findByIdIn(List<Long> ids);
}
